home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh
-
- # sample script to get heme subunits
- # note the /bin/commands, as i have these aliased
-
- # create termporary files with all FE and with no FE
- grep FE 1hho_H.pdb > fe.pdb
- grep -v FE 1hho_H.pdb > por.pdb
-
- # loop over the numbers in 1hho 801..804
- foreach i ( 1 2 3 4 )
- echo 80$i 80$i 11 > fe.in
- echo 80$i 80$i 1 > por.in
- pdb-range-sph fe.pdb 1hho_Fe$i.sph < fe.in
- pdb-range-sph por.pdb tmp.sph < por.in
- sph-bond tmp.sph 1hho_por$i.cyl
- /bin/rm re.in por.in tmp.sph
- end
-
- # pitch temporary files
- /bin/rm re.pdb por.pdb
-
- # create ribbons files
- /bin/ls 1hho_Fe* > globin.atoms
- /bin/ls 1hho_por* > globin.bonds
-